Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add six.moves.unittest_mock #346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ddmee
Copy link

@ddmee ddmee commented Dec 17, 2020

Unittests mock module was added in python 3, it's called unittest.mock in python 3 but it was made available as a backport for python 2 via pypi as mock.

The information is listed on the python 3 documentation https://docs.python.org/3/library/unittest.mock.html

unittest.mock — mock object library
New in version 3.3.
Source code: Lib/unittest/mock.py
...
There is a backport of unittest.mock for earlier versions of Python, available as mock on PyPI.

Mock on pypi: https://pypi.org/project/mock/

This lets a user write six.moves.unittest_mock which is handy for projects like mine that use mock on python 2 and 3.

Hope this PR is alright. I also updated the changes file and version number etc, as it seemed the right thing to do.

@ddmee
Copy link
Author

ddmee commented Dec 18, 2020

I don't think that CI failure is anything to do with this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant